f=float(input())
c=(f-32.0)*(5.0/9.0)
print("%.2f" % c)